﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Principal.Master" AutoEventWireup="true" CodeBehind="ServiciosServidor.aspx.cs" Inherits="ProyectoSalvadorDelMundo.CatalogosGrupales.Servidores.ServiciosServidor" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<asp:Content ID="Content2" ContentPlaceHolderID="contenidoPrincipal" runat="server">
    <form id="form1" runat="server">
        <asp:ToolkitScriptManager ID="toolkitdcriptmanager" runat="server" EnablePartialRendering="true">
        </asp:ToolkitScriptManager>
        <ul class="breadcrumb">
            <li>
                <asp:HyperLink ID="linkNav" runat="server"></asp:HyperLink>
                <span class="divider">/</span>
            </li>
            <li>
                <asp:Label ID="lblNavActiva" runat="server"></asp:Label>
            </li>
        </ul>
        <div>
            <div>
                <h3>
                    <asp:Label ID="lblTitulo" runat="server"></asp:Label></h3>
            </div>
            <div class="contentDiv">
                <div class="gridWrapper">
                    <div>
                    </div>

                    <div class="gridContainer">
                        <asp:UpdatePanel ID="udp" runat="server" UpdateMode="Conditional">
                            <ContentTemplate>
                                <asp:ListView ID="lsvLista" runat="server" GroupPlaceholderID="groupPlaceHolder1" ItemPlaceholderID="itemPlaceHolder1" OnPagePropertiesChanging="OnPagePropertiesChanging">
                                    <LayoutTemplate>
                                        <table class="table table-striped table-bordered table-condensed table-hover">
                                            <tr>
                                                <th style="width: 0px; display: none">ID
                                                </th>
                                                <th>Servicios
                                                </th>
                                                <th style="width: 20px; text-align:center;">Activar
                                                </th>
                                            </tr>
                                            <asp:PlaceHolder runat="server" ID="groupPlaceHolder1"></asp:PlaceHolder>
<%--                                            <tr>
                                                <td colspan="9">
                                                    <asp:DataPager ID="DataPager1" runat="server" PageSize="10" PagedControlID="lsvLista">
                                                        <Fields>
                                                            <asp:NextPreviousPagerField ButtonType="Link" FirstPageText="Primero" ShowFirstPageButton="true" PreviousPageText="Anterior" ShowPreviousPageButton="true" ShowNextPageButton="false" ShowLastPageButton="false" ButtonCssClass="navbar-link" />
                                                            <asp:NumericPagerField ButtonType="Link" NumericButtonCssClass="navbar-link" />
                                                            <asp:NextPreviousPagerField ButtonType="Link" ShowFirstPageButton="false" ShowPreviousPageButton="false" NextPageText="Siguiente" ShowNextPageButton="true" LastPageText="Ultimo" ShowLastPageButton="true" ButtonCssClass="navbar-link" />
                                                        </Fields>
                                                    </asp:DataPager>
                                                </td>
                                            </tr>--%>
                                        </table>
                                    </LayoutTemplate>
                                    <GroupTemplate>
                                        <tr>
                                            <asp:PlaceHolder runat="server" ID="itemPlaceHolder1"></asp:PlaceHolder>
                                        </tr>
                                    </GroupTemplate>
                                    <EmptyDataTemplate>
                                        <table runat="server" style="">
                                            <tr>
                                                <td><h1>No se encontraron registros.</h1></td>
                                            </tr>
                                        </table>
                                    </EmptyDataTemplate>
                                    <ItemTemplate>
                                        <td style="width: 0px; display: none">
                                            <asp:Label ID="ID" runat="server" Text='<%# Eval ("id_servicio") %>'></asp:Label>
                                        </td>
                                        <td>
                                            <asp:Label ID="NOMBRE" runat="server" Text='<%# Eval ("nombre") %>'></asp:Label>
                                        </td>
                                        <td>
                                            <asp:CheckBox ID="chkAplica" runat="server" Checked='<%# Eval("Aplica") == DBNull.Value ? false : Convert.ToBoolean(Eval("Aplica")) %>' />
                                        </td>
                                    </ItemTemplate>
                                </asp:ListView>
                                <asp:Button ID="btnRegresar" runat="server" OnClick="Regresar" CausesValidation="false" Text="Regresar" />
                                <asp:Button ID="btnGuardar" runat="server" OnClick="Guardar" CausesValidation="false" Text="Guardar y Regresar" />
                                <asp:HyperLink ID="linkIrMinisterios" runat="server" CssClass="link" NavigateUrl="~/CatalogosGlobales/Ministerios/Ministerios.aspx"></asp:HyperLink>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="lsvLista" />
                            </Triggers>
                        </asp:UpdatePanel>
                        <asp:UpdateProgress ID="updateprogress" runat="server">
                            <ProgressTemplate>
                                <div style=" position:fixed; text-align:center; height:100%; width:100%; top: 0; right: 0; left: 0; z-index: 9999998; background-color: #000000; opacity: 0.7;">
                                    <span style="border-width:0px; position: fixed; padding: 50px; background-color: #FFFFFF; font-size: 20px; left: 40%; top: 40%;">Cargando ...</span>
                                </div>
                            </ProgressTemplate>
                        </asp:UpdateProgress>
                    </div>
                </div>
            </div>
        </div>
    </form>
</asp:Content>
